﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Login.Master" Inherits="System.Web.Mvc.ViewPage<Defect_Tracking_System.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Defect Tracking System
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <!--  start loginbox ................................................................................. -->
	<div id="loginbox">
	
        <!--  start login-inner -->
        <div id="login-inner">
         <% using (Html.BeginForm()) { %>
            <%: Html.ValidationSummary()%>
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <th>Username</th>
                <td><%: Html.TextBoxFor(m => m.UserName, new { @class = "login-inp" })%></td>
            </tr>
            <tr>
                <th>Password</th>
                <td>
                    <%: Html.PasswordFor(m => m.Password, new { @class = "login-inp", @value = "password", @onblur="if (this.value=='') { this.value='password'; }", @onfocus="if (this.value=='password') { this.value=''; }" })%>
                </td>
            </tr>
            <tr>
                <th></th>
                <td valign="top"><%: Html.CheckBoxFor(m => m.RememberMe, new { @class = "checkbox-size" })%><label for="login-check">Remember me</label></td>
            </tr>
            <tr>
                <th></th>
                <td><input type="submit" class="login-button"  /></td>
            </tr>
            </table>
        </div>
        <% } %>
 		<!--  end login-inner -->
        <div class="clear"></div>
        <%: Html.ActionLink("Register", "Register", null, new { @class = "register" })%>
        <%: Html.ActionLink("Forgot Password?", "ForgotPassword", null, new { @class = "forgot-pwd" })%>
    </div>
 	<!--  end loginbox -->
</asp:Content>
